//
//  HeaderCollectionReusableView.m
//  TasteEnjoy
//
//  Created by XuRui on 16/4/28.
//  Copyright © 2016年 XuRui. All rights reserved.
//

#import "HeaderCollectionReusableView.h"

@implementation HeaderCollectionReusableView

- (void)dealloc
{
    [_labelHeader release];
    [super dealloc];
}
#pragma mark - ------------ 初始化 ---------------
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        [self creatSub];
    }
    return self;
}

#pragma mark - ------------ 创建子视图 ---------------
- (void)creatSub
{
    
    self.labelHeader = [[BaseLabel alloc]init];
    [self addSubview:_labelHeader];
    _labelHeader.font = [UIFont systemFontOfSize:15];
    _labelHeader.textAlignment = NSTextAlignmentCenter;
    
   // _labelHeader.textColor = [UIColor redColor];
    [_labelHeader release];

}

#pragma mark - ------------ 需重新 更新布局 不写 会串行---------------
- (void)layoutSubviews {
    
    [super layoutSubviews];
    
    self.labelHeader.frame = CGRectMake(0, 0, self.bounds.size.width, self.bounds.size.height);
    
    
}


@end
